<?PHP 
//conectar a la BD

//conexion en casa
define( "DATABASE_SERVER", "localhost" );
define( "DATABASE_USERNAME", "root" );
define( "DATABASE_PASSWORD", "root" );
define( "DATABASE_NAME", "masmedio" );

//connect to the database
$mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);

if (!$mysql) {
//    die('Not connected : ' . mysql_error());
	die('Hay un problema con el servidor, esperamos volver pronto en linea.');
}

mysql_select_db( DATABASE_NAME, $mysql );
//mysql_close($mysql);

?>
